package com.example.p82;

import java.util.*;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        List<Integer> list =new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(new Integer(i));
        }
        System.out.println("打乱前：");
        System.out.println(list);
        for (int i =1;i<6;i++) {
            System.out.println("第"+i+"次打乱：");
            Collections.shuffle(list);
            System.out.println(list);
        }
    }
}
